package appconfig

import "github.com/spf13/viper"

type AppConfig struct {
	MysqlInit
}
type MysqlInit struct {
	Hort     string
	User     string
	Pass     string
	Part     int
	Database string
}

var AppCon AppConfig

func AppInit() {
	viper.SetConfigFile("./appconfig/test.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&AppCon)
}
